package com.lhh.springcloud.service.imp;

import com.lhh.springcloud.dao.AccountMapper;
import com.lhh.springcloud.service.AccountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 李洪豪
 * @Sno 20220301044
 */
@Service
@Slf4j
public class AccountServiceImp implements AccountService {
    @Resource
    private AccountMapper accountMapper;
    @Override
    public void updateAccountMoney(Long user_id, Integer money) {
        log.info("账户"+user_id+"开始执行账户余额更新");
        accountMapper.updateAccountMoney(user_id,money);
        log.info("账户"+user_id+"执行庄户余额更新成功");
    }
}
